package com.design.pattern.template;

import org.springframework.stereotype.Component;

/**
 * @author 王霄
 * @date 2022/3/11 9:37
 */
@Component
public class CookSteak extends DefaultCook {
    @Override
    protected void prepare() {
        System.out.println("准备牛排");
    }

    @Override
    protected void cooking() {
        System.out.println("烹饪牛排");
    }

    @Override
    protected void cooked() {
        System.out.println("牛排做好了");
    }
}
